<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-03-19
 * Time: 16:45
 */

namespace app\api\controller\v1;


use app\api\controller\BaseController;
use app\api\model\System as SystemModel;

class System extends BaseController
{
    protected $beforeActionList = [
        'checkPrimaryScope' => ['only' => 'getSystem']
    ];


    /**
     * 获取系统信息
     */
    public function getSystem()
    {
        return SystemModel::where('id',1)->find();
    }
}